<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>动画</title>
    <style>
        #move-transition-box {
            background-color: cornflowerblue;
            width: 100px;
            height: 100px;
        }
        .move-transition {
            /* transition-property: all; */
            transition-property: background-color, height, width;
            transition-duration: 1.8s, 1.0s, 1.0s;
            transition-delay: 0.1s;
            transition-timing-function: linear;
        }
    </style>
</head>

<body>
    <div id ="move-transition-box" class="move-transition" onclick="scale()"></div>
    <script>
    function scale() {
        let tbox = document.getElementById('move-transition-box');
        tbox.style.height = 200 + 'px';
        tbox.style.width = 200 + 'px';
        tbox.style.backgroundColor = 'red';
    }
    </script>
</body>

</html>